<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="se.hh.lab.domain.*" import="se.hh.lab.dao.*" import="se.hh.lab.dao.impl.*" %>
  <%@ include file="user_sidebar.jsp" %>
  <%@ include file="user_pagehead.jsp" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
	<title> Lab in Halmstad University</title>
  </head>
 <body>
 <%  Login login=(Login)session.getAttribute("userlogin");
 	 if(login==null)
 	 {
 		 response.sendRedirect("user_main.jsp");
 		 return;
 	 }
 %>
<%
	String userID=login.getUserID();
	Provisional pro=new Provisional();
	pro.setUserID(userID);
	UserProvisionalBorrowDao proDao=new UserProvisionalBorrowDaoImpl();
	pro=proDao.getProvisional(pro);
	String context=pro.getContext();
	

%>

<div id="body-wrapper">
  <div id="main-content">
    <div class="clear"></div>
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3 >Provisional box</h3>
        
      </div>
      <!-- End .content-box-header -->      
      <div class="content-box-content">         
            <p>
              <font color="#3d3d3d"  >UserID</font> &nbsp;&nbsp;
              <input class="text-input small-input" type="text" name="name" value="<%=userID %>"/>          
              <br />
            <p>
              <font color="#3d3d3d"></font> <br/><br>
              <textarea class="text-input textarea wysiwyg" id="textarea" name="textarea" cols="50" rows="5">
              <%=context %>
              </textarea>
            </p>
            <p align="right">
            </p>
       
            <div class="clear"></div>
    
        
      </div>
      <!-- End .content-box-content -->
    </div>

 
    <!-- End .content-box -->
    <div class="clear"></div>
 
    <div id="footer"> <small>
      <!-- Remove this notice or replace it with whatever you want -->
      CopyRight © 2012 Link: Halmstad University Liwei Ren ,Zhiqiang Gao Firefox with 1024*768 is perfect </small> </div>
    <!-- End #footer -->
  </div>
  <!-- End #main-content -->
</div>
</body> 
  
  
  
</html>
